import request, { requestOld } from '@/utils/request'
import { batchTask } from './work'

// 查询工作状态列表
export function listHteq(query) {
  return request({
    url: '/data/hteq/list',
    method: 'get',
    params: query
  })
}

// 电量记录召测
export function hteqCall(query) {
  return batchTask({
    newUrl: '/data/hteq/call',
    oldUrl: '/ChaobiaoModule/Tparam_eq/GetCheckData',
    meterNos: query.meterNos,
    rooms: query.rooms,
    updateUrl: '/old/refresh/htEq',
    onItemOver: query.onItemOver
  })
}